<div class="breadcrumbs">		
	<?php
	
	$new_message = 'Aan?';
	$subject = 'Geen Onderwerp';
	
	if($this->data['Message']['to'] != null){
		$new_message = $this->data['Message']['to'];
	}
	
	if($this->data['Message']['subject'] != null){
		$subject = $this->data['Message']['subject'];
	}
	
		if(isset($this->data['Message']['subject'])){
			$items = array(
				array('Home', array('controller' => 'users', 'action' => 'updates')),
				array('Inbox', array('controller' => 'messages', 'action' => 'inbox')),
				array($this->FixText->fix_text($subject, 8, TRUE), array('controller' => 'messages', 'action' => 'view', $this->data['Message']['parent_id'])),
				array($this->FixText->fix_text($new_message, 7, TRUE), array('controller' => 'pitches', 'action' => 'send'))
			);
		} else {
			$items = array(
				array('Home', array('controller' => 'pitches', 'action' => 'index')),
				array('Inbox', array('controller' => 'messages', 'action' => 'inbox'))
			);
		}
	
	echo $this->Navigation->breadcrumbs($items);
	?>
</div>
<div class="welcome">
<h1>Nieuw Bericht</h1>
</div>
<div class="content-wrapper ui-corner-all">				
	<div class="content-block ui-corner-all">
		<div class="clear">&nbsp; </div>
			<div id="new-message">
				<?php echo $this->Form->create('Message'); ?>
				<?php echo $this->Form->input('parent_id', array('type' => 'hidden')); ?>				
				<div id="forms-message">
				<h2>Aan</h2>
				<?php echo $this->Form->input('to', array('label' => __(' ', true))); ?>
				
				<h2>Onderwerp</h2>	
				<?php echo $this->Form->input('subject', array('label' => __(' ', true))); ?>
				<div class="clear">&nbsp; </div>
				<h2>Bericht</h2>	
				<?php echo $this->Form->input('body', array('label' => __(' ', true))); ?>
				</div>
				
				<?php $options = array(
   					'name' => '',
   					'label' => 'verzend',
        			'class' => '',
				);
				echo $form->end($options,__('Verzend', true)); ?>
			</div>
		</div>
	</div>
<div class="clear"></div>
